﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Brouteforce.Map {
    public delegate void OnEventEndsHandler(MapEvent e);
    public abstract class MapEvent {
        public event OnEventEndsHandler OnEventEnds;
        public double DefaultDrawScale = 1.0;

        public abstract Vector2 PositionInWorld {get;}
        public abstract Texture2D Texture { get; }

        public void FireOnEventEnds() {
            if (OnEventEnds != null) OnEventEnds(this);
        }
    }
}
